<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--右侧头部标签-->
<div th:fragment="leftNav" class="layui-side layui-side-menu">
    <div class="">
        <div class="layui-logo" lay-href="home/console.html">
            <span>SWAS权限管理系统</span>
        </div>
        <ul class="layui-nav layui-nav-tree layui-side-scroll" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
            <li data-name="home" class="layui-nav-item" th:classappend="${(menu.id == '2')?'layui-nav-itemed':''}" th:each="menu:${menuTree}">
                <a  href="javascript:;" lay-tips="" th:attrappend="lay-tips=@{${menu.name}}" lay-direction="2">
                    <i class="layui-icon " th:attrappend="class=@{${menu.icon}}"></i>
                    <cite th:text="${menu.name}"></cite>
                </a>
                <dl th:if="${!#lists.isEmpty(menu.children)}" class="layui-nav-child">
                    <dd  data-name="console" th:each="child:${menu.children}">
                        <a th:if="${child.classify ==  1 && child.target == 2}" th:attr="lay-href=@{'/admin/forward/systemManage?url='+${child.menuUrl}}" lay-href="">
                            <cite th:text="${child.name}"></cite>
                        </a>
                        <a th:if="${child.classify ==  1 && child.target == 1}"  th:target="_blank" th:href="@{'/admin/forward/systemManage?url='+${child.menuUrl}}">
                            <cite th:text="${child.name}"></cite>
                        </a>
                        <a th:if="${child.classify ==  2 && child.target == 1}" th:target="_blank" th:href="${child.menuUrl}">
                            <cite th:text="${child.name}"></cite>
                        </a>
                        <a th:if="${child.classify ==  2 && child.target == 2}" th:attr="lay-href=${child.menuUrl}">
                            <cite th:text="${child.name}"></cite>
                        </a>
                    </dd>
                </dl>
            </li>
        </ul>
    </div>
</div>
</body>
</html>